package com.vpen.exception;

import com.vpen.base.BaseCode;
import com.vpen.base.BaseMsg;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @version: 1.0
 * @author: Vpen
 * @date: 2021/10/2 22:04
 * @content:
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ExceptionMsg extends BaseMsg {

    public ExceptionMsg(BaseCode codeEnum) {
        super(codeEnum.getCode(),codeEnum.getMsg());
    }

    public ExceptionMsg(String code, String message) {
        super(code,message);
    }

}
